package com.cinyi.cyds.base.redis;

import org.apache.log4j.Logger;

import com.cinyi.cyds.base.module.BaseModule;

/**
 * @author penghui
 *
 */
public class RedisManager extends BaseModule {
	private final static Logger logg = Logger.getLogger(RedisManager.class);
	
	private static RedisManager instance = null ;
	
	private RedisHelper redis = null ;
	
	public static RedisManager getInstance(){
		if(instance == null){
			instance = new RedisManager();
		}
		return instance ;
	}
	
	private RedisManager() {
		redis = new RedisHelper();
	}

	@Override
	public void start() {
    }
	
	@Override
    public void destroy() {
    	redis.destory();
    }
    
    public RedisHelper getRedisHelper() {
		return redis;
	}

    @Override
    public String getName()
    {
        return "redis-module";
    }
	
}

